project(btl)
cmake_minimum_required(VERSION 2.8)

# output layout and naming settings
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

set(CMAKE_DEBUG_POSTFIX "_d")

# ---------------------------------------------------------------------
# Global configuration

find_package(Boost 1.43 REQUIRED)
find_package(Eigen3 REQUIRED)

# global build settings
include_directories(
	include
	${Boost_INCLUDE_DIRS}
	${Eigen3_INCLUDE_DIRS}
)

add_subdirectory(src)
add_subdirectory(testsuite)

# ---------------------------------------------------------------------
# Set some variables for the benefit of co-configured projects that
# want to use BTL

set(BTL2_FOUND TRUE PARENT_SCOPE)
set(BTL2_LIBRARIES BTL PARENT_SCOPE)
set(BTL2_INCLUDE_DIRS
	"${CMAKE_CURRENT_SOURCE_DIR}/include"
	${Boost_INCLUDE_DIRS}
	${Eigen3_INCLUDE_DIRS}
	PARENT_SCOPE
)

